<!DOCTYPE html>
<html lang="en" >
<head>
    <meta charset="UTF-8">
    <script src="angular.js"></script>
    <title>运行angular</title>
</head>
<body ng-app="khj" ng-controller="MainCtrl">
 What's  your name ?
 <input type="text" ng-model="name">
 <button ng-click="great()">Click here!</button>
 <h3>{{message}}</h3>












<script>
    var app = angular.module('khj',[])
    app.controller('MainCtrl',function ($scope) {
        $scope.great = function () {
            $scope.message = "Hello,"+$scope.name
        }
    })
</script>
</body>

</html>